import axios, { Axios } from "axios";
const context = "/ucenter";

/**
 * 获取 Storegroup 分页列表
 */
export function getStoregroupPagination(data: any) {
  return axios.get(`${context}/storegroup/pagination`, { params: data });
}

/**
 * 获取 Storegroup 所有数据
 */
export function getStoregroupAllList(data: any) {
  return axios.get(`${context}/storegroup/all`, { params: data });
}

/**
 * 获取 Storegroup 详情
 */
export function getStoregroupDetailById(id: any) {
  return axios.get(`${context}/storegroup/${id}`, { params: { id } });
}

/**
 * 新增 Storegroup
 */
export function addStoregroup(data: any) {
  return axios.post(`${context}/storegroup`, data);
}



/**
 * 修改 Storegroup
 */
export function updateStoregroup(data: any) {
  return axios.put(`${context}/storegroup`, data);
}

/**
 * 删除 Storegroup
 */
export function batchRemoveStoregroup(data: any) {
  return axios.post(`${context}/storegroup/batchRemove`, data);
}
